package org.java.innerClass;

public class Parcel {
	
	private class PContents implements Contents{

		private int i = 1;
		
		@Override
		public int value() {
			return 0;
		}
		
	}
	
	protected class PDestination implements Destination{

		private String label;
		
		public PDestination(String whereTo){
			label = whereTo;
		}
		
		@Override
		public String readLabel() {
			return label;
		}
		
	}
	
	public Destination dest(String s){ return new PDestination(s);} 
	
	public Contents cont(){
		return new PContents();
	}

	/*public static void main(String[] args) {
         Parcel p = new Parcel();
        Contents c = p.cont();
        Destination d = p.dest("Jack Jos");
        
        
	}*/

}
